package org.openzip.openzip.gui.util.selection;

import java.io.File;
import java.util.Collection;

/**
 * Observer for the changes in selected files. If the files in
 * SelectedFilesModel changed, listeners of this interface will get notified.
 */
public interface FileSelectionObserver
{
	/**
	 * Sends information about selection change.
	 * 
	 * @param files
	 *           Files that changed in the selection model.
	 * @param added
	 *           <code>true</code> if the files were added, <code>false</code> if
	 *           they were removed
	 */
	void update(Collection<File> files, boolean added);
}
